package lab02.test27;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test27 {
    public static void main(String[] args) {
        while(true) {
            Scanner s = new Scanner(System.in);
            System.out.println("请输入一个数：");
            try {
                int i = s.nextInt();
            }catch(InputMismatchException e){
                System.out.println("异常：这是个float类型的数");
            }

        }
    }
}
